package com.brick.entity;

public class ShoppingCart {
    private String id;
    /**
     * 用户id
     */
    private String userId;
    /**
     * 商品id
     */
    private String orderId;
    /**
     * 数量
     */
    private Integer number;
    /**
     * 是否失效 1：否 0：是
     */
    private Integer loseEfficacy;
    /**
     * 日期
     */
    private String dateline;
    /**
     * 状态
     */
    private Integer state;
    /**
     * 商品信息
     */
    private Commodity commodity;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Integer getLoseEfficacy() {
        return loseEfficacy;
    }

    public void setLoseEfficacy(Integer loseEfficacy) {
        this.loseEfficacy = loseEfficacy;
    }

    public String getDateline() {
        return dateline;
    }

    public void setDateline(String dateline) {
        this.dateline = dateline;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Commodity getCommodity() {
        return commodity;
    }

    public void setCommodity(Commodity commodity) {
        this.commodity = commodity;
    }

    @Override
    public String toString() {
        return "ShoppingCart{" +
                "id='" + id + '\'' +
                ", userId='" + userId + '\'' +
                ", orderId='" + orderId + '\'' +
                ", number=" + number +
                ", loseEfficacy=" + loseEfficacy +
                ", dateline='" + dateline + '\'' +
                ", state=" + state +
                '}';
    }
}
